package cn.springcloud.alibaba.gateway.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/alertManager")
public class AlertManagerController {

	@RequestMapping("/hook")
	public Object hook(@RequestBody String body) {
		System.out.println("接受到告警信息：" + body);
		System.out.println("告警信息发送到数据库。。。");
		return "success";
	}
}
